<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VideoAdd.aspx.cs" Inherits="IGlobalist.Cms.VideoAdd" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>iGlobalist cms</title>
</head>
<body style="background:#dde6f7;">
<div align="center">
    <form id="form1" runat="server">
    <div style="font-weight:bold" align="center"> Upload Video</div>            
    <table cellpadding="2" cellspacing="2" border="0">
        <tr>
            <td align="left">
                User Class:
                <asp:HiddenField ID="hdfVideoID" Value="0" runat="server" />
            </td>
            <td align="left">
                <asp:DropDownList ID="ddlClassPage" runat="server" DataSourceID="ODSClassPage" DataTextField="Name" DataValueField="ID" >
                </asp:DropDownList>
                <asp:ObjectDataSource ID="ODSClassPage" runat="server" SelectMethod="GetClassListByClassTypeID"  TypeName="IGlobalist.Cms.Bll.ClassController">
                    <SelectParameters>
                            <asp:Parameter DefaultValue="14" Name="classTypeID" Type="Int16" />
                    </SelectParameters>
                </asp:ObjectDataSource>                       
            </td>
        </tr>        
         <tr>
            <td align="left">
                Category:
            </td>
            <td align="left">
                <asp:DropDownList ID="ddlCategory" runat="server" DataTextField="Name" DataValueField="ID" >
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="left">
                Name:
            </td>
            <td align="left">
                <asp:TextBox ID="tbName" runat="server" Width="350px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="Must enter name" ControlToValidate="tbName" >*</asp:RequiredFieldValidator>                             
            </td>
        </tr>
        <tr>
            <td align="left">
                Tag:
            </td>
            <td align="left">
                <asp:TextBox ID="tbTag" runat="server" Width="350px"></asp:TextBox>
            </td>
        </tr>       
        <tr>
            <td align="left">
                Description
            </td>
            <td align="left">
                <asp:TextBox ID="tbDescription" runat="server" Rows="4" Height="50px" Width="350px"  TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="left">
                <asp:Label ID="lbFile" Text="Video file" runat="server"></asp:Label>
            </td>
            <td align="left">
                <asp:FileUpload runat="server" ID="fuFile"  Size="40"/>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="btnUpload" runat="server" Text="Upload video" OnClick="btnUpload_Click" />                
                <asp:Literal ID="ltlScript" runat="server"></asp:Literal><br/>
                <asp:Label ID="lblError" runat="server" Text="" ForeColor="red"></asp:Label>
                <asp:Literal ID="ltrScript" runat="server"></asp:Literal>
            </td>
        </tr>
    </table>                  
    </form>
    </div>
</body>
</html>
